package com.yyq.javastudy;

import com.yyq.seven.MyAnnotation;

/**
 * @author yyq
 * @create 2021-08-01 15:47
 */
@MyAnnotation()
public class Student extends Persion implements Runner{
    public Student(int age, String name) {
        //调用父类构造器
        super(age, name);
    }
    String school;


    public void  myshool(){
        System.out.println("myschool is "+ school);
    }
//重写父类方法
    public void myself(){
        //调用父类方法
        super.myself();
        System.out.println("Age="+age+","+"Name is"+name+".And my school is " + school);
    }

    @Override
    public void start() {

        System.out.println("开始跑步了"+i);

    }

    @Override
    public void stop() {
        System.out.println("结束跑步了"+i);
    }
}
